<?php
namespace app\models;

class CommentCenter extends IModel {
    public $table = 't_comment_center';

    public function block($id, $status) {
        $sql = 'UPDATE ' . $this->table . ' set status=? where id=?';

        $this->db->prepareStatement($sql)->bindValues([$status, $id])->execute();
    }
}
